#ifndef USERSEVICE_IMPL_H
#define USERSEVICE_IMPL_H

#include "userservice.h"
#include "bookdao_impl.h"
#include "userdao_impl.h"
#include "remarkdao_impl.h"
#include "remark.h"

class UserServiceImpl:public UserService
{
	UserDaoImpl* r_dao;
	BookDaoImpl* b_dao;
	RemarkDaoImpl* re_dao;
public:
	UserServiceImpl();
	void ReaderSearch(int id);
	void BookSearch(char *str);
	bool BookOrder(int r_id,int b_id);
	void Recommend(void);
	void RemarkRun(int i);
	static bool Compare1(Book b1,Book b2);
	static bool Compare2(Book b1,Book b2);
	void Cnt();
	void Soc();
	~UserServiceImpl();

};
#endif//USERSEVICE_IMPL_H
